<template>
	<view class="container">
		<view class="uni-margin-wrap">
			<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
				:duration="duration">
				<swiper-item>
					<view class="swiper-item uni-bg-red">
						<image
							src="https://th.bing.com/th/id/OIP.ezQZwMFMd12ZBhzXCdNqagHaE7?w=271&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7">
						</image>
					</view>
				</swiper-item>
				<swiper-item>
					<view class="swiper-item uni-bg-green">
						<image
							src="https://th.bing.com/th/id/OIP.kpwRv_JfrpohD4G9z9RGggHaE8?w=266&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7">
						</image>
					</view>
				</swiper-item>
				<swiper-item>
					<view class="swiper-item uni-bg-blue">
						<image
							src="https://th.bing.com/th/id/OIP.3sHh6dYm0pQSNKYiYwAlUwHaFj?w=205&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7">
						</image>
					</view>
				</swiper-item>
			</swiper>
		</view>
		<view class="info">
			<text>伟业汽车维修厂(人民路店)</text>
			<view>
				<uni-rate :readonly='true' v-model="rateValue" @change="onChange" />
				<view class="pingfen">{{rateValue}}分</view>
				<text class="xaioliang"><text style="font-weight: bold;">销量</text>：322</text>
			</view>
			<view class="yingyeshijian">营业时间:<text>周一至周五</text><text>09:00~22:00</text></view>
			<view class="location">
				山阳区人民中路32号
				<navigator class="location1" url="/pages/navigation/navigation">
					<image src="../../static/image/地址.jpg"> </image>
				</navigator>
			</view>
		</view>
		<view class="fuwu">
			<text>服务项目</text>
			<view class="fuwuxaingmulist">
				<view class="fuwuxaingmuitem">
					<view>工时价格（每小时）<text>￥299</text><text>￥199</text></view>
				</view>
			</view>
			<view class="fuwuxaingmulist">
				<view class="fuwuxaingmuitem">
					<view>轮胎<text>￥299</text><text>￥199</text></view>
				</view>
			</view>
			<view class="fuwuxaingmulist">
				<view class="fuwuxaingmuitem">
					<view>...<text>￥299</text><text>￥199</text></view>
				</view>
			</view>
		</view>
		<view class="fuwupingjia">
			<text>服务评价</text>
			<view class="fuwupingjiaitem">
				<image class="headimg" src="../../static/logo.png"></image>
				<view>
					<text>李**</text>
					<uni-rate :readonly='true' v-model="pinglunRateValue" />
				</view>
				<text>2022-09-10</text>
				<view class="pingjianeirong">
					<text>服务评价内容</text>
					<view>
						<image src="../../static/uni.png"></image>
						<image src="../../static/uni.png"></image>
					</view>
				</view>
			</view>
			<view class="fuwupingjiaitem">
				<image class="headimg" src="../../static/logo.png"></image>
				<view>
					<text>李**</text>
					<uni-rate :readonly='true' v-model="pinglunRateValue" />
				</view>
				<text>2022-09-10</text>
				<view class="pingjianeirong">
					<text>服务评价内容</text>
					<view>
						<image src="../../static/uni.png"></image>
						<image src="../../static/uni.png"></image>
					</view>
				</view>
			</view>
			<view class="fuwupingjiaitem">
				<image class="headimg" src="../../static/logo.png"></image>
				<view>
					<text>李**</text>
					<uni-rate :readonly='true' v-model="pinglunRateValue" />
				</view>
				<text>2022-09-10</text>
				<view class="pingjianeirong">
					<text>服务评价内容</text>
					<view>
						<image src="../../static/uni.png"></image>
						<image src="../../static/uni.png"></image>
					</view>
				</view>
			</view>
		</view>

		<button class="mini-btn" type="primary" @click="handleBooking">立即预约</button>

	</view>
</template>

<script>
	export default {
		components: {

		},
		data() {
			return {
				background: ['color1', 'color2', 'color3'],
				indicatorDots: false,
				autoplay: false,
				interval: 2000,
				duration: 500,
				rateValue: 3,
				pinglunRateValue: 5,
			}
		},
		onLoad() {

		},
		methods: {
			handleBooking() {
				// 处理预约逻辑
				console.log("立即预约按钮被点击");
				uni.navigateTo({
					url:"/pages/appoint/appoint"
				})
			}
		}
	}
</script>

<style>
	.container {
		background-color: #ffffff;
	}

	.uni-margin-wrap {
		width: 100%;
	}

	.swiper {
		width: 100%;
		height: 430rpx;
	}

	.swiper-item {
		display: block;
		height: 430rpx;
		line-height: 300rpx;
		text-align: center;
	}

	.swiper-list {
		margin-top: 40rpx;
		margin-bottom: 0;
	}

	.uni-common-mt {
		margin-top: 60rpx;
		position: relative;
	}

	.info>view {
		margin-top: 10rpx;
		display: flex;
		/* align-items: center;
	    position: absolute; */
		/* right: 20rpx; */
	}

	.uni-padding-wrap {
		width: 550rpx;
		padding: 0 100rpx;
	}

	.swiper-item image {
		width: 100%;
		height: 100%;
	}

	.info>text {
		font-weight: bold;
		font-size: 30rpx;
		margin-right: 10rpx;
	}

	.info {
		width: 90%;
		padding: 20rpx;
		border-bottom: solid 5rpx #efefef;
	}


	.pingfen {
		margin-left: 10rpx;
	}

	.xaioliang {
		margin-left: 90rpx;
	}

	.yingyeshijian {
		margin-top: 10rpx;
	}

	.yingyeshijian>text {
		margin-left: 20rpx;
	}

	.location {
		margin-top: 20rpx;
	}

	.location1 {
		margin-left: 30rpx;
		margin-top: -15rpx;
	}

	.location1>image {
		width: 60rpx;
		height: 60rpx;
	}

	.fuwu {
		width: 90%;
		padding: 20rpx;
		margin-top: 30rpx;
	}

	.fuwu>text {
		font-size: 30rpx;
		font-weight: bold;
		margin-left: 13rpx;
	}

	.fuwuxaingmuitem>view>text {
		float: right;
		font-weight: bold;
		margin-left: 30rpx;
	}

	.fuwuxaingmuitem>view>text:nth-child(1) {
		text-decoration: line-through;
		color: red;
		font-size: 25rpx;
	}

	.fuwuxaingmulist {
		border-bottom: solid 1rpx #efefef;
		padding: 15rpx;
		padding-left: 30rpx;
	}

	.fuwupingjia {
		margin-top: 30rpx;
	}

	.fuwupingjia>text {
		font-size: 30rpx;
		font-weight: bold;
		margin-left: 33rpx;
	}

	.fuwupingjiaitem {
		padding: 28rpx;
	}

	.headimg {
		width: 80rpx;
		height: 80rpx;
		border-radius: 50%;
	}

	.fuwupingjiaitem>view {
		display: inline-block;
		margin-left: 38rpx;
	}

	.fuwupingjiaitem>text {
		float: right;
		font-weight: bold;
	}

	.pingjianeirong {
		padding-top: 20rpx;
		padding-left: 75rpx;
	}

	.pingjianeirong>view>image {
		padding: 10rpx 12rpx;
		width: 130rpx;
		height: 120rpx;
	}

	.mini-btn {
		position: fixed;
		bottom: 0;
		margin-left: 10%;
		width: 80%;
		border-radius: 60rpx;
	}
</style>